#include <stdio.h>
int main()
{
	float a,b;
	printf("inpute the in come:");
	scanf("%f",&a);
	if(a<=3500)
	b=0;
	else if(a<=5000)
	b=(a-3500)*0.03;
	else if(a<=9000)
	b=(5000-3000)*0.03+(a-5000)*0.1;
	else if(a<=9500)
		b=(5000-3000)*0.03+(9500-5000)*0.1;
		else if(a>9500)
			b=(5000-3000)*0.03+(9500-5000)*0.1+(a-9500)*0.2;
			printf("the tax is:%.2f",b);
			return 0;
}
